#include <stdio.h>

typedef enum
{
    WIFI_STATE_INIT,
    WIFI_STATE_CONNECTED,
    WIFI_STATE_DISCONNECTED,
} lyn_wifi_state_t;

typedef void (*lyn_wifi_listener_t)(lyn_wifi_state_t state, void *org);

void lyn_wifi_init(const char *ssid,const char *password,lyn_wifi_listener_t listener);